//
//  EScrollerView.h
//  icoiniPad
//
//  Created by Ethan on 12-11-24.
//
//

#import <UIKit/UIKit.h>
#import "ShowUnit.h"
#import <QuartzCore/QuartzCore.h>
@protocol EScrollerViewDelegate <NSObject>
@optional
-(void)EScrollerViewDidClicked:(NSUInteger)index;
-(void)startTimer;
-(void)endTimer;
@end

@interface EScrollerView : UIView<UIScrollViewDelegate> {
	CGRect viewSize;
	UIScrollView *scrollView;
    UIPageControl *pageControl;
    id<EScrollerViewDelegate> delegate;
    int currentPageIndex;
    UILabel *noteTitle;
    
     NSArray *focusarray;
    
    NSArray *dataArray;
//     NSArray *imageArray;
//     NSArray *titleArray;
}


@property(nonatomic,retain)id<EScrollerViewDelegate> delegate;

-(void)goToNextPage;
-(void)reloadData:(NSArray *)data;
//-(void)reloadData:(NSArray *)ta img:(NSArray *)ia;
-(void)goToOriginal;
@end
